﻿using System;

namespace Tss.MagicWeb.Domain.Decks
{
    public class DeckValidationRuleResult
    {
        public bool Valid { get; set; }
        public String ErrorMessage { get; set; }
        
        public static DeckValidationRuleResult Successful()
        {
            return new DeckValidationRuleResult
                       {
                           Valid = true,
                           ErrorMessage = String.Empty,
                       };
        }

        public DeckValidationRuleResult()
        {
            
        }

        public DeckValidationRuleResult(String errorMessage)
        {
            ErrorMessage = errorMessage;
            Valid = String.IsNullOrEmpty(errorMessage);
        }
    }
}
